<!--提交申请 -->
<template>
  <VDispatchContent
    :id="id"
    :type-show="type"
    :arr="arr"
  ></VDispatchContent>
</template>
<script setup lang="ts">
import VDispatchContent from './pillContent.vue'
import { watch } from 'vue'
import { useThingStore } from '@/stores/addThing'
import { ref } from 'vue'
import { useRoute } from 'vue-router'
const thingStore = useThingStore()
const route = useRoute()
const id = ref()
const type = ref(0)
const arr = ref([])
watch(
  () => route,
  async () => {
    if (route.path == '/collection/process/ManageProcess/submitFile') {
      id.value = route.query?.id
      arr.value = thingStore.thingList
    }
  },
  { deep: true, immediate: true }
)
</script>
<style scoped lang="scss"></style>
